<?php
/**
 * Created by PhpStorm.
 * User: lee
 * Date: 2018/1/9
 * Time: 下午3:39
 */

namespace Biz\model\trade;


class OrderExtend extends \Doraemon\pockets\datebase\BaseDbModel
{
    const _CONFIG_FILE_ = 'db_shop';

    const _CONFIG_SELECT_ = 'db_trade';

    const _DATABASE_ = 'shop_trade';

    const _TABLE_NAME = 'order_extend';


    public static function insertOrderExtend($data)
    {
        return self::insert($data)->rowCount();
    }

    public static function getByOrderNo($orderNo)
    {
        return self::get('*', ['order_no' => $orderNo]);
    }

    public static function getOrderListByOrderNos($orderNo)
    {
        return self::select('*', ['order_no' => $orderNo]);
    }

}